﻿<%@ Page Title=""  Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="UsuarioForm.aspx.cs" Inherits="proyGestionActivos.UsuarioFormV2" %>

<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPopupControl" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>

<asp:Content ID="Content2" ContentPlaceHolderID="id_transfiter" runat="server">

    <script type="text/javascript">
    // <![CDATA[
    function ShowMsj() {
        popupmsj.Show();
    }
    function ShowConfirmacion() {
        popupConfirmacion.Show();
    }
    // ]]> 
    </script>

    <div class="main-header" style="width:100%">
                <div class="main-titulo">
                    Adm. Usuarios</div>
               
            </div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
            <table>
            <tr>
            <td>


                <dx:ASPxButton ID="ASPxButton1" runat="server" Text="Nuevo" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    onclick="ASPxButton1_Click">
                </dx:ASPxButton>


            </td>
            <td>
                <dx:ASPxButton ID="ASPxButton2" runat="server" Text="Modificar" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" onclick="ASPxButton2_Click" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                </dx:ASPxButton>
            
            </td>
            <td>
            
                <dx:ASPxButton ID="btnEliminar" runat="server" Text="Anular" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    ClientInstanceName="btnEliminar" onclick="btnEliminar_Click">
                </dx:ASPxButton>
            
            </td>
            <td>
            
                <dx:ASPxButton ID="ASPxButton4" runat="server" Text="Salir" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    onclick="ASPxButton4_Click">
                </dx:ASPxButton>
            
            </td>
            
            </tr>
            
            
            </table>

               <div class="content-form">
               
               <dx:ASPxGridView ID="gvListUsuario" runat="server" 
                       AutoGenerateColumns="False"  
                       CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                       CssPostfix="Office2010Blue" Width="100%" KeyFieldName="ID_USUARIO" 
                       onpageindexchanged="gvListUsuario_PageIndexChanged" 
                       onfocusedrowchanged="gvListUsuario_FocusedRowChanged" 
                       onafterperformcallback="gvListUsuario_AfterPerformCallback">
                       <Columns>
                           <dx:GridViewDataTextColumn Caption="ID" FieldName="ID_USUARIO" VisibleIndex="0">
                               <PropertiesTextEdit>
                                   <ValidationSettings ErrorText="Valor inválido">
                                       <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                   </ValidationSettings>
                               </PropertiesTextEdit>
                           </dx:GridViewDataTextColumn>
                           <dx:GridViewDataTextColumn Caption="Nombre" FieldName="DES_NOMBRE" 
                               VisibleIndex="1">
                               <PropertiesTextEdit>
                                   <ValidationSettings ErrorText="Valor inválido">
                                       <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                   </ValidationSettings>
                               </PropertiesTextEdit>
                           </dx:GridViewDataTextColumn>
                           <dx:GridViewDataTextColumn Caption="Apellidos" FieldName="DES_APELLIDOS" 
                               VisibleIndex="2">
                               <PropertiesTextEdit>
                                   <ValidationSettings ErrorText="Valor inválido">
                                       <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                   </ValidationSettings>
                               </PropertiesTextEdit>
                           </dx:GridViewDataTextColumn>
                           <dx:GridViewDataTextColumn Caption="Email" FieldName="DES_EMAIL" 
                               VisibleIndex="3">
                               <PropertiesTextEdit>
                                   <ValidationSettings ErrorText="Valor inválido">
                                       <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                   </ValidationSettings>
                               </PropertiesTextEdit>
                           </dx:GridViewDataTextColumn>
                           <dx:GridViewDataTextColumn Caption="Estado" FieldName="IND_ESTADO" 
                               VisibleIndex="4">
                               <PropertiesTextEdit>
                                   <ValidationSettings ErrorText="Valor inválido">
                                       <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                   </ValidationSettings>
                               </PropertiesTextEdit>
                           </dx:GridViewDataTextColumn>
                           <dx:GridViewDataTextColumn FieldName="DES_PASSWORD" Visible="False" 
                               VisibleIndex="7">
                               <PropertiesTextEdit>
                                   <ValidationSettings ErrorText="Valor inválido">
                                       <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                   </ValidationSettings>
                               </PropertiesTextEdit>
                           </dx:GridViewDataTextColumn>
                           <dx:GridViewDataTextColumn FieldName="USR_CREACION" Visible="False" 
                               VisibleIndex="6">
                           </dx:GridViewDataTextColumn>
                           <dx:GridViewDataTextColumn FieldName="ID_TIPO_USUARIO" VisibleIndex="5" 
                               Visible="False">
                           </dx:GridViewDataTextColumn>
                       </Columns>
                       <SettingsBehavior AllowFocusedRow="True" />
                       <Settings ShowFilterRow="True" />
<SettingsLoadingPanel Text="Cargando&amp;hellip;"></SettingsLoadingPanel>
                       <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                           <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                           </LoadingPanelOnStatusBar>
                           <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                           </LoadingPanel>
                       </Images>
                       <ImagesFilterControl>
                           <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                           </LoadingPanel>
                       </ImagesFilterControl>
                       <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                           CssPostfix="Office2010Blue">
                           <Header ImageSpacing="5px" SortingImageSpacing="5px">
                           </Header>
                           <LoadingPanel ImageSpacing="5px">
                           </LoadingPanel>
                       </Styles>
                       <StylesPager>
                           <PageNumber ForeColor="#3E4846">
                           </PageNumber>
                           <Summary ForeColor="#1E395B">
                           </Summary>
                       </StylesPager>
                       <StylesEditors ButtonEditCellSpacing="0">
                           <ProgressBar Height="21px">
                           </ProgressBar>
                       </StylesEditors>
                   </dx:ASPxGridView>
               
               
               
               </div>
               <dx:ASPxPopupControl ID="popupmsj" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupmsj" CloseAction="None" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    EnableViewState="False" HeaderText="Mensaje" 
                    LoadingPanelText="Cargando&amp;hellip;" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="300px">
                
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
<Paddings Padding="0px"></Paddings>
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
<BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px"></BorderBottom>
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                        PaddingTop="4px" />
<Paddings PaddingLeft="10px" PaddingTop="4px" PaddingRight="4px" PaddingBottom="4px"></Paddings>
                    </HeaderStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl5" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel2" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="Panelpopup" runat="server">
                        <table align="center">
                        <tr>
                        <td colspan="2">
                        
                            Seleccione una registro
                        
                        
                        
                        </td>
                        
                        </tr>
                            <tr>
                                <td colspan="2">
                                    &nbsp;</td>
                            </tr>
                        
                        </table>
                        <table align="center">
                        <tr>
                        <td align="center">
                        
                            <dx:ASPxButton ID="ASPxButton3" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
<ClientSideEvents Click="function(s, e) {
	popupmsj.Hide();
}"/>
                            </dx:ASPxButton>
                        </td>
                        
                        </tr>
                        </table>



                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>
      <dx:ASPxPopupControl ID="popupConfirmacion" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupConfirmacion" CloseAction="None" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    EnableViewState="False" HeaderText="Mensaje" 
                    LoadingPanelText="Cargando&amp;hellip;" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="300px">
                
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
<Paddings Padding="0px"></Paddings>
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
<BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px"></BorderBottom>
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                        PaddingTop="4px" />
<Paddings PaddingLeft="10px" PaddingTop="4px" PaddingRight="4px" PaddingBottom="4px"></Paddings>
                    </HeaderStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel1" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent1" runat="server">
                        <table align="center">
                        <tr>
                        <td colspan="2">
                        
                            &nbsp;<dx:ASPxLabel ID="lblMensaje" runat="server">
                            </dx:ASPxLabel>
                        
                        
                        
                        </td>
                        
                        </tr>
                            <tr>
                                <td colspan="2">
                                    &nbsp;</td>
                            </tr>
                        
                        </table>
                        <table align="center">
                        <tr>
                        <td align="center">
                        
                            <dx:ASPxButton ID="btnAceptar" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                OnClick="btnAceptar_Click">
<ClientSideEvents Click="function(s, e) {
	popupConfirmacion.Hide();
}"/>
                            </dx:ASPxButton>
                        </td>
                        <td>
                        
                            <dx:ASPxButton ID="ASPxButton5" runat="server" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Cancelar">
                                <ClientSideEvents Click="function(s, e) {
	popupConfirmacion.Hide();
}" />
                            </dx:ASPxButton>
                        
                        </td>
                        </tr>
                        </table>



                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>
    </ContentTemplate>
    </asp:UpdatePanel>
    </asp:Content>
